﻿using System;
using System.Collections.Generic;
using VisionCloud.Core.Model.Sys;
using VisionCloud.Domain.Common;

namespace VisionCloud.Domain.DtoModel.Sys
{
    public class SysRoleDto
    {
        public Guid RoleId { get; set; }

        public Guid AppId { get; set; }

        public Guid? ProjectId { get; set; }

        public string Code { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public SysRole.EnumRoleStatus Status { get; set; }

        public bool IsSuperAdministrator { get; set; }

        public bool Builtin { get; set; }

        public DateTime LastUpdatedDate { get; set; }

        ///// <summary>
        ///// 角色的菜单
        ///// </summary>
        //public RoleMenuDto RoleMenus { get; set; }

        ///// <summary>
        ///// 角色的菜单里的权限配置
        ///// </summary>
        //public RoleMenuPermissionDto RoleMenuPermision { get; set; }

        public bool IsDeleted { get; set; }

        /// <summary>
        /// 角色的权限
        /// </summary>
        public List<RoleMenuPermissionDto> RoleMenuPermisions { get; set; }
    }

    /// <summary>
    /// 查询条件对象
    /// </summary>
    public class SysRoleCondition : PageBase
    {
        public Guid AppId { get; set; }
        public Guid RoleId { get; set; }

        public bool? Builtin { get; set; }

        public string Code { get; set; }

        public string Name { get; set; }
    }
}